public class ThridQtnThread {

    public static void main(String[] args) {

        for (int i = 1; i <=3 ; i++) {
            new Thread(()->{
                for (int j =1; j <=30 ; j++) {
                    System.out.println(Thread.currentThread().getName()+"正在发第"+j+"张试卷");
                    try {
                        Thread.sleep(200);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
            },"老师"+i).start();
        }
    }
}
